package com.redsoil.house.ui.matter.adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.redsoil.house.R;
import com.redsoil.house.base.BaseViewHolderTSK;
import com.redsoil.house.model.bean.RoomFileVO;
import com.redsoil.house.model.bean.TestVO;
import com.redsoil.house.widget.glide.GlideRoundTransform;

import java.util.List;

/**
 * Created by weidingqiang on 2018/12/20.
 */

public class MatterFileAdapter extends BaseQuickAdapter<RoomFileVO.FilesBeanX.FilesBean,BaseViewHolderTSK> {

    public MatterFileAdapter(int layoutResId, List<RoomFileVO.FilesBeanX.FilesBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolderTSK helper, RoomFileVO.FilesBeanX.FilesBean item) {
        helper.setText(R.id.mTvTitle,item.getFileName());

        //需要判断类型 显示不同的图标
//        switch ()
//        Glide.with(mContext)
//                .load("http://txt25-2.book118.com/2017/0704/book120182/120181642.jpg")
//                .centerCrop()
//                .into((ImageView)helper.getView(R.id.mIcon));
    }
}
